# xadmin的依赖
import xadmin
xadmin.autodiscover()
# xversion模块自动注册需要版本控制的 Model
from xadmin.plugins import xversion
xversion.register_models()
from django.urls import path,re_path,include
from django.conf import settings
from django.views.static import serve

urlpatterns = [
    path(r'xadmin/', xadmin.site.urls),
    path('user/', include('user.urls')),
    path('home/', include('home.urls')),
    path('car/', include('car.urls')),
    path('store/', include('store.urls')),
    path('order/', include('order.urls')),

    re_path('^media/(?P<path>.*)', serve, {'document_root': settings.MEDIA_ROOT})
]
